package com.aspose.cells;

class zcdh extends zcdb {
   zcdh() {
      this.d = 19;
   }

   void a(String var1) throws Exception {
      this.c = new byte[5 + var1.length() * 2];
      byte var2 = 1;
      zcch.a(this.c, var2, var1);
   }

   void a(zbap var1, Workbook var2) throws Exception {
      byte[] var3 = var1.h();
      int var4 = var3.length;
      this.c = new byte[5 + var1.c.length() * 2 + 4 + var4];
      this.c[0] = 1;
      byte var5 = 1;
      int var10 = zcch.a(this.c, var5, var1.c);
      System.arraycopy(com.aspose.cells.b.a.zc.a(var3.length / 4), 0, this.c, var10, 4);
      var10 += 4;

      for(int var6 = 0; var6 < var4; var6 += 4) {
         int var7 = zase.a(var3, var6);
         int var8 = zase.a(var3, var6 + 2);
         int var9 = this.a(var8, var2.getWorksheets());
         System.arraycopy(com.aspose.cells.b.a.zc.a(var7), 0, this.c, var10, 2);
         var10 += 2;
         System.arraycopy(com.aspose.cells.b.a.zc.a(var9), 0, this.c, var10, 2);
         var10 += 2;
      }

   }

   private int a(int var1, WorksheetCollection var2) {
      for(int var3 = 0; var3 < var2.z().size(); ++var3) {
         Font var4 = (Font)var2.z().get(var3);
         if (var1 == var4.j()) {
            return var3;
         }
      }

      return -1;
   }
}
